﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Math
{
    public static class Numbers
    {
        public static bool isPositive(object num)
        {
            dynamic dynObj = num;

            try { return (dynObj > 0); }
            catch { return false; }
        }

        public static bool isNegative(object num)
        {
            dynamic dynObj = num;

            try { return (dynObj < 0); }
            catch { return false; }
        }

        public static bool isZero(object num)
        {
            dynamic dynObj = num;

            try { return (dynObj == 0); }
            catch { return false; }
        }
    }
}
